<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Blog_model extends CI_Model{
	const TBL = 'blog';
	public function __construct()
	{
		parent::__construct();
		//装载database
		$this->load->database();
	}

	/**
	*@access public
	*@data array
	*@return bool 成功true  失败false
	*/
	public function Add($data)
	{
		return $this->db->insert(self::TBL,$data);
		//return false;
	}
}

?>